//
//  PaymentDetailsViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PaymentDetailsViewController.h"
#import "PaymentDetailsViewModel.h"
#import "DetailsOfIncomeAndExpenditureViewController.h"

@interface PaymentDetailsViewController ()
{
    PaymentDetailsViewModel *viewModel;
}
@end

@implementation PaymentDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收支明细";
    viewModel = [[PaymentDetailsViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    kWeakSelf(self);
    viewModel.BlockSelet = ^(NSIndexPath * _Nullable index) {
        [weakself selectRowIndex:index];
    };
}

- (void)selectRowIndex:(NSIndexPath *)index
{
    DetailsOfIncomeAndExpenditureViewController *vc = [DetailsOfIncomeAndExpenditureViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
